import axios from 'axios';

axios.defaults.baseURL = 'http://localhost:8081'

export const getPartByTaskTypeApi = (taskType) => {
    return axios.get(`/carsys/part/task/${taskType}`);
};

export const getAllPartsApi = () => {
    return axios.get('/carsys/part/list');
}